package com.gl.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;



/**
 * @Author: liangSY
 * @Date: 2021/6/17 15:31
 * @ClassName: JwtConfig
 */
@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtConfig {

    /**
     * 密匙Key
     */
    public static String secret;

    /**
     * token
     */
    public static String tokenHeader;

    /**
     * Token前缀
     */
    public static String tokenPrefix;

    /**
     * token过期时间
     */
    public static long expirationTime;

    public static long refreshExpirationTime;

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public  void setTokenHeader(String tokenHeader) {
        this.tokenHeader = tokenHeader;
    }

    public  void setTokenPrefix(String tokenPrefix) {
        this.tokenPrefix = tokenPrefix;
    }

    public  void setExpirationTime(long expirationTime) {
        this.expirationTime = expirationTime;
    }

    public  void setRefreshExpirationTime(long refreshExpirationTime) {
        this.refreshExpirationTime = refreshExpirationTime;
    }
}
